﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewDDSys.Entity;
using NewDDSys.Factory;
using NewDDSys.IBLL;
using System.Data;

namespace NewDDSys.BLL
{
    public class LweekplanBLL:ILweekplanBLL
    {
        public int AddLweekplan(LweekplanInfo lwp)
        {
            return DALFactory.CreateLweekplanDAL().AddLweekplan(lwp);
        }
        public int UpdateLweekplan(string num, string ku, string sday, string eday, decimal wcl, decimal jk)
        {
            return DALFactory.CreateLweekplanDAL().UpdateLweekplan(num, ku, sday, eday, wcl, jk);
        }
        public int UpdateLweekplanJK(string num, decimal jk)
        {
            return DALFactory.CreateLweekplanDAL().UpdateLweekplanJK(num, jk);
        }
        public int Del(string num)
        {
            return DALFactory.CreateLweekplanDAL().Del(num);
        }
        public DataSet Select(string num)
        {
            return DALFactory.CreateLweekplanDAL().Select(num);
        }
        public DataSet SelectByDay(string sday)
        {
            return DALFactory.CreateLweekplanDAL().SelectByDay(sday);
        }
        public string AUTOID()
        {
            return DALFactory.CreateLweekplanDAL().AUTOID();
        }
        public decimal ltrxl(string cday, string ku)
        {
            return DALFactory.CreateLweekplanDAL().ltr(cday, ku);
        }
    }
}
